package com.neuedu.studentmanage.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import com.neuedu.studentmanage.entity.Teacher;

@Mapper
@Repository
public interface TeacherMapper extends BaseMapper<Teacher> {

	/**
	 * 教师登录
	 * 
	 * @param teacher
	 * @return
	 */
	public Teacher login(Teacher teacher);

	/**
	 * 条件查询
	 * 
	 * @param teacher
	 * @return
	 */
	public List<Teacher> findBy(Teacher teacher);
	
	public boolean passEdit(Teacher teacher);

}
